package com.globagames.strategicgames.control
{
	import com.adobe.cairngorm.control.FrontController;
	import com.globagames.isometric.core.command.LoadMapCommand;
	import com.globagames.isometric.core.event.LoadMapEvent;
	import com.globagames.strategicgames.command.*;
	import com.globagames.strategicgames.event.*;
		
	public class GameController extends FrontController
	{
		public function GameController()
		{			
			initialiseCommands();
		}				
		public function initialiseCommands() : void
		{
			addCommand(LoadMapEvent.EVENT_LOAD_MAP, LoadMapCommand);
			addCommand(CreateWorldMapEvent.EVENT_CREATE_WORLDMAP, CreateWorldMapCommand);
			addCommand(ConnexionEvent.EVENT_CONNEXION, LoginRegistrationCommand);
			addCommand(LoadFactionArmyEvent.EVENT_LOAD_FACTION_ARMY, LoadFactionArmyCommand);
			addCommand(CompanyExchangeEvent.EVENT_COMPANY_EXCHANGE, CompanyExchangeCommand);
			addCommand(CompanyManagementEvent.EVENT_COMPANY_MANAGEMENT, CompanyManagementCommand);
			addCommand(LoadBattleMapEvent.EVENT_LOAD_BATTLE_MAP, LoadBattleMapCommand);
			
		}	
	}	
} 